Mailchimp API integration error handling fix

jamesperet 9 years ago
parent
commit
9db3c77518
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/models/subscription.rb

+ 2 - 1
app/models/subscription.rb

@@ -22,10 +22,11 @@ class Subscription < ActiveRecord::Base
22 22
     list_id = ENV['MAILCHIMP_LIST_ID']
23 23
     response = Rails.configuration.mailchimp.lists.subscribe({
24 24
       id: list_id,
25
+      throws_exceptions: false,
25 26
       email: {email: email},
26 27
       double_optin: false
27 28
     })
28
-    response
29
+    #response
29 30
   end
30 31
   
31 32
 end